{include file="common/header.tpl"}    
    <div id="vfriendContainer">
        <div id="mainContent3C">
            <div class="vfriendContainer3C">
                <div class="vfriendContent3C">
                	<div class="leftCol">  
                    	{vfriend_navi id=$AppUI->id}                	
                    </div>
                    <div class="rightCol">
                        <div class="midCol">                        	
                            {if $arrFeature}
                                <div class="boxBlogFeature">
                                    <div class="headerTitle"><h3>Nhật Ký Nổi Bật</h3></div>
                                    <div class="blogFeatureItem">
                                        {foreach item=item key=i from=$arrFeature}
                                        	{if $i==0}
                                                <div class="blogFeatureItems">
                                                    {if $item.image != ""}
                                                    	{image path=$item.image id=$item.blogid title=$item.title type=3 small=1 class="border160 rFloat"}
                                                        {image id=$item.userid type=1 small=2 class="border50 lFloat"} 
                                                        <div class="hasImg">                    	
                                                            <h3><a href="{blog_username userid=$item.userid}">{$item.fullname}</a></h3>
                                                            <h4><a href="{link_blog blogid=$item.blogid title=$item.title}" class="title">{$item.title}</a></h4>
                                                            <p>{$item.short}...<a href="{link_blog blogid=$item.blogid title=$item.title}">xem thêm</a></p>
                                                            <div class="stat">
                                                                <span class="date">{$item.postdate|date_format:"%d-%m-%Y"}</span>
                                                                <span class="bLike">Thích (<strong>{$row.tlike|number_format}</strong>)</span>
                                                                <span class="bCmt">Bình luận (<strong>{$row.tcmt|number_format}</strong>)</span>
                                                            </div>
                                                        </div>
                                                    {else}
                                                    	{image id=$item.userid type=1 small=2 class="border50 lFloat"}
                                                        <div class="noImg">  
                                                            <h3><a href="{blog_username userid=$item.userid}">{$item.fullname}</a></h3>
                                                            <h4><a href="{link_blog blogid=$item.blogid title=$item.title}" class="title">{$item.title}</a></h4>
                                                            <p>{$item.short}<a href="{link_blog blogid=$item.blogid title=$item.title}">xem thêm</a></p>
                                                            <div class="stat">
                                                                <span class="date">{$item.postdate|date_format:"%d-%m-%Y"}</span>
                                                                <span class="bLike">Thích (<strong>{$row.tlike|number_format}</strong>)</span>
                                                                <span class="bCmt">Bình luận (<strong>{$row.tcmt|number_format}</strong>)</span>
                                                            </div>
                                                        </div>
                                                    {/if}                                       
                                                </div>
                                            {/if}
                                        {/foreach}
                                    </div>
                                </div>
                            {/if}
                            <div class="boxBlogNews">
                            	<div class="headerTitle"><h3>Nhật ký mới<span><a href="{$smarty.const.LINK_BLOG_NEWS}">xem thêm</a></span></h3></div>
                                <div class="blogNewsItem">
                                	{include file="blog/box-result.tpl"}
                                </div>
                            </div>                            
                        </div>
                        <div class="extCol">
                        	{include file="blog/box-top.tpl"}
                        	{include file="blog/box-friend.tpl"}
                        </div>
                   	</div>
               	</div>
            </div>
        </div>
    </div>
{include file="common/footer.tpl"}